package job;

import dao.IOrderDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

//定时任务类
@Component
public class DateJob {
    @Autowired
    private IOrderDao iOrderDao;

    @Scheduled(cron = "0 */1 * * * ?")
    public void test(){
        iOrderDao.jobForOrder();
    }
}
